package com.dto.merchant;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Level1DTO implements Serializable,Comparable<Level1DTO> {

	private static final long serialVersionUID = 4450744492505559474L;

	private Integer l1Id;
	private String l1Name;
	private List<Level2DTO> level2Tables = new ArrayList<Level2DTO>(0);

	/**
	 * @return the l1Id
	 */
	public Integer getL1Id() {
		return l1Id;
	}

	/**
	 * @param l1Id
	 *            the l1Id to set
	 */
	public void setL1Id(Integer l1Id) {
		this.l1Id = l1Id;
	}

	/**
	 * @return the l1Name
	 */
	public String getL1Name() {
		return l1Name;
	}

	/**
	 * @param l1Name
	 *            the l1Name to set
	 */
	public void setL1Name(String l1Name) {
		this.l1Name = l1Name;
	}

	/**
	 * @return the level2Tables
	 */
	public List<Level2DTO> getLevel2Tables() {
		return level2Tables;
	}

	/**
	 * @param level2Tables
	 *            the level2Tables to set
	 */
	public void setLevel2Tables(List<Level2DTO> level2Tables) {
		this.level2Tables = level2Tables;
	}
	@Override
	public int compareTo(Level1DTO obj) {
		return this.l1Name.compareTo(obj.getL1Name());
	}
	
	
}
